package com.jic.manager.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.manager.entity.StoreRating;
import com.jic.manager.request.StoreRatingRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 店铺评分表
 * @author : 
 * @email : 
 * @since : 2020-03-02 08:37:09
 * @version : v1.0.0
 */
@Mapper
public interface  StoreRatingMapper {

    long insert(StoreRating storeRating);

    long delete(Long id);

    long update(StoreRating storeRating);

    StoreRating queryByPrimaryKey(Long id);

    List<StoreRating> query(StoreRating storeRating);

    List<StoreRatingRequest> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("storeRating") StoreRatingRequest storeRating);

    long queryPageCount(@Param("storeRating") StoreRatingRequest storeRatingRequest);

    List<StoreRatingRequest> getStoreCommentList(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("storeRating") StoreRatingRequest storeRating);

    long queryCommentCount(@Param("storeRating") StoreRatingRequest storeRatingRequest);
}